package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.AllocationDTO;
import com.arpa.wms.domain.entity.Allocation;
import com.arpa.wms.domain.vo.AllocationVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * WMS调拨单 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
public interface AllocationMapper extends BaseMapper<Allocation> {

    /**
     * 查询列表
     * @param allocationDTO
     * @return
     */
    List<AllocationVO> queryList(AllocationDTO allocationDTO);

    /**
     * 查询合计,包含总数
     * @param allocationDTO
     * @return
     */
    AllocationVO queryListSum(AllocationDTO allocationDTO);

    List<AllocationVO> auditList(AllocationDTO dto);

    AllocationVO auditListSum(AllocationDTO dto);
}
